const mysql = require("mysql");
var con = mysql.createConnection({
    host:"localhost",
    post:3306,
    user:"root",
    password:"",
    database:"database"

})
var userName = process.argv[2];
var selectsql = "select userName,age from where userName="
con.query(selectsql,[userName],(err,result)=>{
    if(err){
        console.log(err);
    }
    else{
        console.log(result);
    }
})